package com.prj.ufdm.file.service;

import com.mongodb.client.result.UpdateResult;
import com.prj.ufdm.file.model.AloneFile;
import com.prj.ufdm.file.model.WholeFile;

public interface WholeFileService {

    public WholeFile createWholeFile(WholeFile wholeFile) throws Exception;
    
    public UpdateResult updateWholeFile(String wholeFileId,String chunkNum,AloneFile aloneFile) throws Exception;
    
    public WholeFile getWholeFileByWholeFileId(String id) throws Exception;
    
    public WholeFile getWholeFileByWholeFileHash(String fileHash) throws Exception;
    
}
